import http from './http.js'
/** 获取轮播图数据*/
const getbanner = () => {
	let data = http.get('article/api/advert/show/1')
	return data
}
/** 获取首页热门推荐分类*/
const getHotrecom = () => {
	let data = http.get('article/api/category/label/list')
	return data
}
/** 获取热门数据 */
const getHotList = (msg) => {
	let data = http.post('course/api/course/search', msg)
	return data
}
/**获取近期上新数据*/
const getNewList = (msg) => {
	let data = http.post('course/api/course/search', msg)
	return data
}
//分类接口
const getFllist=()=>{
	let data=http.get('article/api/category/label/list')
	return data
}
//阅读接口
const getReadlist=()=>{
	let data=http.get('article/api/category/label/list')
	return data
}
//阅读分类推荐接口
const getflTj=(msg)=>{
	let data=http.post('article/api/article/search',msg)
	return data
}

// 切换分类接口
const getflJk=(msg)=>{
	let data=http.post('article/api/article/search',msg)
	return data
}
//热门回答
const hot=(msg)=>{
	let data=http.post('question/api/question/hot',msg)
	return data
}
//最新问题
 const newwt=(msg)=>{
	 let data=http.post('question/api/question/new',msg)
	 return data
 }
 //等待回答
 const wait=(msg)=>{
	 let data=http.post('question/api/question/wait',msg)
	 return data
 }


export {
	getbanner,
	getHotrecom,
	getHotList,
	getNewList,
	getFllist,
	getReadlist,
	getflTj,
	getflJk,
	hot,
	newwt,
	wait,
}
